package com.genghis.ptas.question.dao;

import com.genghis.ptas.question.entity.Answer;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: gaoyang
 * To change this template use File | Settings | File Templates.
 */
public interface AnswerDao {
    void addAnswer(Answer answer);

    void editAnswer(Answer answer);

    void delAnswerByIds(String ids);

    void delAnswerByQuestionId(String ids);

    Answer findAnswerById(int id);

    List<Answer> findAllAnswerByQuestionId(Integer questionId);

    List<Answer> findNewestAnswerByQuestionId(int id);
}
